﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClienteEditForm.aspx.cs" 
Inherits="UILGestion.Admin.Cliente.ClienteEditForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
    <title>Cliente</title>
   
  <script src="../../Scripts/jquery-1.5.2.min.js" type="text/javascript"></script>
   <script type="text/javascript">
       $(document).ready(function () {
           $(document).bind('contextmenu', function (e) {
               return false;
           });
       });
</script>
   
    <style type="text/css">
        .style1
        {
            width: 11px;
        }
        .style2
        {
            width: 11px;
            height: 12px;
        }
        .style3
        {
            height: 23px;
        }
        .style4
        {
            color: #CC6600;
        }
        .style5
        {
            color: #FF9933;
            font-weight: bold;
        }
    </style>
   
</head>
<body>
    <form id="form1" runat="server">
    <input id="type" type="hidden" runat="server" />
    <input id="internalID" type="hidden" runat="server" />
    <input id="paginaAnt" type="hidden" runat="server" />
     <uc1:menuCtrl ID="menuCtrl1" runat="server" />
    
      <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" 
      EnableScriptGlobalization="true"  
     EnablePartialRendering="true" />
    
     <asp:Panel ID="pnlMain" runat="server"
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
  <asp:Label ID="Label2" runat="server" Text="EDITAR CLIENTE" style="font-size: large; color: #960818"></asp:Label>
 </asp:Panel>

          <asp:Panel ID="PanelButtom" runat="server"     class="ms-crm-Form-Body" >                 
   <table >
<tr>

<td>
    <asp:Button ID="saveBTN" runat="server" Text="Guardar"  
       OnClick="button"   CssClass="ms-crm-List-Header"    /></td>
<td>
    <asp:Button ID="cancelarBTN" runat="server" Text="Cancelar"  
       OnClick="button" CssClass="ms-crm-List-Header"  /></td>
        <td></td>
        <td>
    <asp:Button ID="refreshBTN" runat="server" Text="Restablecer"   OnClick="button" CssClass="ms-crm-List-Header" 
          /></td> 
 
</tr>
</table>
</asp:Panel>

<asp:Panel ID="PanelBody" runat="server"  BackColor="white" >



                
                <table>
                   
                    <tr>
                        <td rowspan="18" valign="top"  Width="480px">
                     
                       <asp:UpdatePanel runat="server" ID="empresaUP" UpdateMode="Conditional">
               <ContentTemplate>
               
                            <asp:RadioButtonList runat="server" ID="EsEmpresaCHK"  AutoPostBack="true"
                                onselectedindexchanged="EsEmpresaCHK_SelectedIndexChanged">
                            <asp:ListItem Text="Persona Natural"  Value="0" Selected="true" ></asp:ListItem>
                            <asp:ListItem Text="Persona Juridica"  Value="1" Selected="false"></asp:ListItem>
                            </asp:RadioButtonList>
                           
                   <asp:Panel ID="empresaPanel" runat="server">
                                                                                   <table>

             <tr>
              <td align="right" width="100px" >
                            Razon Social:</td>
             <td >
                            <asp:TextBox ID="razonSocialTextBox" runat="server" Width="300px"></asp:TextBox>
                            <img alt="" class="style2" src="../../Images/req.gif" />
               </td>
             </tr>

                        <tr>
                        
                        <td align="right" width="100px" >RUC:</td>
                        <td >
                            <asp:TextBox ID="RUCTXT" runat="server" Width="200px"></asp:TextBox>
                            <img alt="" class="style2" src="../../Images/req.gif" />
                            </td>
                    </tr>

  </table>
                       </asp:Panel>       
                       <asp:Panel ID="personaPanel" runat="server">
                                     <table>
                        <tr>
                        <td align="right" width="100px">Nombre:</td>
                        <td>
                            <asp:TextBox ID="nombresTXT" runat="server" Width="300px"></asp:TextBox>
                            <img alt="" class="style2" src="../../Images/req.gif" />
                            </td>
                        
                        </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 Apellido Paterno:
                                             </td>
                                             <td>
                                                 <asp:TextBox ID="apellidoPatTxt" runat="server" Width="200px"></asp:TextBox>
                                                 <img alt="" class="style2" src="../../Images/req.gif" />
                                             </td>
                                         </tr>
                        <tr>
                        <td align="right" width="100px">Apellido Materno: </td>
                        <td><asp:TextBox ID="apellidoMatTXT" runat="server" Width="200px"></asp:TextBox>
                            <img alt="" class="style2" src="../../Images/req.gif" />
                            </td>
                        
                        </tr>
                            <tr>
                                <td align="right" width="100px">
                                    Nacionalidad:</td>
                                <td>
                                    <asp:DropDownList ID="nacionalidadDDL" runat="server" Width="200px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="100px">
                                    Documento:</td>
                                <td>
                                    <asp:DropDownList ID="tipoDocumentoDDL" runat="server" Width="150px">
                                    </asp:DropDownList>
                                    <asp:TextBox ID="documentoIdentidadTXT" runat="server" Width="150px"></asp:TextBox>
                                    <img alt="" class="style2" src="../../Images/req.gif" />
                                </td>
                            </tr>

                            <tr>
                                <td align="right" width="100px">
                                    Genero:</td>
                                <td>
                                    <asp:DropDownList ID="GeneroDDL" runat="server" Width="200px">
                                   
                                    </asp:DropDownList>
                                </td>
                            </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 Estado Civil:</td>
                                             <td>
                                                 <asp:DropDownList ID="estadoCivilDDL" runat="server" Width="200px"  AutoPostBack="TRUE"
                                                     onselectedindexchanged="estadoCivilDDL_SelectedIndexChanged">
                                                 </asp:DropDownList>
                                             </td>
                                         </tr>
                                 <tr>
                                <td align="right" width="100px" class="style3">
                                    Conviviente</td>
                                <td class="style3">
                                    <asp:CheckBox ID="convivienteCHK" runat="server" AutoPostBack="TRUE" 
                                        oncheckedchanged="convivienteCHK_CheckedChanged" />
                                </td>
                            </tr>
                           
                                         <tr>
                                             <td align="right"  colspan="2">
                                             <asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="conyugeUPNL">
                                             
                                             <ContentTemplate>
                                             <asp:Panel ID="conyugePNL" runat="server" Visible="false">

                                             
                                             
                                             
                                              <table width="100%">
                                             <tr>
                                             <td width="96px">&nbsp;</td>
                                             <td align="left" class="style4">
                                                 INFORMACION PARA EL CONTRATO DE VENTA (NO OBLIGATORIO)</td>
                                             </tr>
                                                  <tr>
                                                      <td width="96px" align="right" class="style5">
                                                          Cónyuge:</td>
                                                      <td align="left">
                                                          <asp:TextBox ID="conyyugeTXT" runat="server" Width="300px"></asp:TextBox>
                                                          &nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                      <td align="right" class="style5">
                                                          DNI Conyuge:</td>
                                                      <td align="left">
                                                          <asp:TextBox ID="dniConyugeTXT" runat="server" Width="200px"></asp:TextBox>
                                                          &nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                      <td align="right" class="style5">
                                                          Correo Electrónico:</td>
                                                      <td align="left">
                                                          <asp:TextBox ID="emailConyugeTXT" runat="server" Width="200px"></asp:TextBox>
                                                      </td>
                                                  </tr>
                                                  <tr>
                                                      <td align="right" class="style5">
                                                          Telefono/Celular:</td>
                                                      <td align="left">
                                                          <asp:TextBox ID="telefonoConyugeTXT" runat="server" Width="200px"></asp:TextBox>
                                                      </td>
                                                  </tr>
                                             </table>
                                             </asp:Panel>
                                             </ContentTemplate>
                                             </asp:UpdatePanel>
                                                 </td>
                                           
                                         </tr>
                           
                        </table>
                                  </asp:Panel>       
                        </ContentTemplate>
                        <Triggers >
                        <asp:AsyncPostBackTrigger ControlID="EsEmpresaCHK" />
                        </Triggers>
               </asp:UpdatePanel>


                        </td>
                        <td width="130px" class="style1" >
                            &nbsp;</td>
                        <td >
                            &nbsp;</td>
                    </tr>
                  
               
                    <tr>
                        <td width="130px" class="style1">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                  
               
                    <tr>
                        <td class="style1" width="130px">
                            Ocupación:</td>
                        <td>
                            <asp:TextBox ID="ocupacionTXT" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                  
               
                    <tr>
                        <td class="style1" width="130px">
                            Correo Electronico:</td>
                        <td>
                            <asp:TextBox ID="emailTextBox" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1" width="130px">
                            Correo Alternativo.:</td>
                        <td>
                            <asp:TextBox ID="correoAlternativoTXT" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1" width="130px">
                         
                                    web:</td>
                        <td>
                            <asp:TextBox ID="webTXT" runat="server"  Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td class="style1" width="130px">
                            Telefono:</td>
                        <td>
                            <asp:TextBox ID="telefonoTxt" runat="server" Width="200px"></asp:TextBox>
                            <img alt="" class="style2" src="../../Images/req.gif" />
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td class="style1" width="130px">
                            Celular:</td>
                        <td>
                            <asp:TextBox ID="celularTXT" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td class="style1" width="130px">
                             Fax:</td>
                        <td>
                            <asp:TextBox ID="faxTXT" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td class="style1" width="130px">
                            Estado:</td>
                        <td>
                            <asp:DropDownList ID="estadoDDL" runat="server" Width="200px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td class="style1" width="130px">
                            Activo:</td>
                        <td>
                            <asp:CheckBox ID="bitActivoCHK" runat="server" />
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td class="style1" width="130px">
                            Comentario:</td>
                        <td rowspan="3">
                            <asp:TextBox ID="comentarioTXT" runat="server" TextMode="MultiLine" 
                                Height="70px" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td class="style1" width="130px">
                            &nbsp;</td>
                    </tr>
                    <tr class="PanelTotales">
                        <td class="style1" width="130px">
                            &nbsp;</td>
                    </tr>
                </table>
            
 

  <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
     <asp:TabPanel ID="DireccionTPNL" runat="server" HeaderText="Direccion">
     <ContentTemplate>

     
    <table class="ms-crm-MaxWidth">
        <tr>
            <td class="ms-crm-TextAlign-TrailingEdge" width="100px">
                Direccion:</td>
                <td width="350px">
                                                 <asp:TextBox ID="direccionTXT" runat="server" 
                        Width="330px"></asp:TextBox>
                                                 <img alt="" class="style2" src="../../Images/req.gif" />
                                             </td>
                <td rowspan="2" valign="top">
                    <asp:UpdatePanel ID="ubigeoUP" runat="server" UpdateMode="Conditional" >
                        <ContentTemplate>
                            <table class="ms-crm-MaxWidth">
                                <tr>
                                    <td align="right" width="100px">
                                        Departamento:</td>
                                    <td>
                                        <asp:DropDownList ID="departamentoDDL" runat="server" Width="210px"  
                                            OnSelectedIndexChanged="comboBox" AutoPostBack="true">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1" align="right" width="100px">
                                        Provincia:</td>
                                    <td class="style1">
                                        <asp:DropDownList ID="provinciaDDL" runat="server" Width="210px" 
                                            OnSelectedIndexChanged="comboBox" AutoPostBack="true">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" width="100px">
                                        Distrito</td>
                                    <td>
                                        <asp:DropDownList ID="distritoDDL" runat="server" Width="210px" 
                                            OnSelectedIndexChanged="comboBox" AutoPostBack="true">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                 <tr>
                                    <td align="right" width="100px">
                                        Urbanizacion</td>
                                    <td>
                                        
                                        <asp:TextBox ID="urbanizaiconTXT" runat="server" Width="200px"></asp:TextBox>
                                        
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td class="ms-crm-TextAlign-TrailingEdge" width="100px">
                Referencia:</td>
                <td width="350px">
                            <asp:TextBox ID="referenciaTXT" runat="server" Height="70px" 
                                TextMode="MultiLine" Width="350px"></asp:TextBox>
                        </td>
        </tr>
    </table>

    </ContentTemplate>
     </asp:TabPanel>
    
</asp:TabContainer>



 
 </asp:Panel>
    </form>
</body>
</html>
